import math


def move(x, y, step, angle=0.0):
    nx = x + step*math.cos(angle)
    ny = y + step*math.sin(angle)
    return nx, ny


x, y = move(100, 100, 60, float(math.pi)/6)
print(x, y)
r = move(100, 100, 60, float(math.pi)/6)
print(r)


def qua(a, b, c):
    nx = (-b+math.sqrt(b*b-4*a*c))/2/a
    ny = (-b-math.sqrt(b*b-4*a*c))/2/a
    return nx, ny


print(qua(2, 3, 1))
print(qua(1, 3, -4))
